﻿@using CaptchaMvc.HtmlHelpers
@model CodeCamp.Models.Home.ContactDetailViewModel

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Contact Code Camp</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Subject)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Subject)
            @Html.ValidationMessageFor(model => model.Subject)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name, "Your Name")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EmailAddress, "Your Email Address")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EmailAddress)
            @Html.ValidationMessageFor(model => model.EmailAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Message)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Message, new { cols = 60, rows = 6 })
            @Html.ValidationMessageFor(model => model.Message)
        </div>

        <p>
            @Html.Captcha("Try another image", "Enter the characters you see in the captcha image above.", 6, "Is required field.")
        </p>
        <p>
            Please click once and be patient.  This may take a few moments to complete.<br /> 
            <input type="submit" value="Submit" />
        </p>
    </fieldset>
}
